<template>
  <div class="box">
    <h5>ONE-第一层组件</h5>
    <ChildCom @update-info="getInfo"></ChildCom>
  </div>
</template>

<script>
import ChildCom from "./ChildCom";
export default {
  components: {
    ChildCom,
  },
  methods: {
    getInfo(arg) {
      console.log("ONE-第一层组件", arg);
      // ChildCom 组件的回传数据发生了变化，继续向上传递
      this.$emit("update-info", arg);
    },
  },
};
</script>
